def code(**kwargs):
    import requests

    cookies = {
        'JSESSIONID': kwargs.get('JSESSIONID'),
        'tempTokenKey': kwargs.get('tempTokenKey'),
    }

    headers = {
        'Host': 'gzmh.zwfw.guizhou.gov.cn',
        'sec-ch-ua-platform': '"Windows"',
        'X-Requested-With': 'XMLHttpRequest',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0',
        'Accept': '*/*',
        'sec-ch-ua': '"Microsoft Edge";v="137", "Chromium";v="137", "Not/A)Brand";v="24"',
        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
        'sec-ch-ua-mobile': '?0',
        'Origin': 'https://gzmh.zwfw.guizhou.gov.cn',
        'Sec-Fetch-Site': 'same-origin',
        'Sec-Fetch-Mode': 'cors',
        'Sec-Fetch-Dest': 'empty',
        'Referer': 'https://gzmh.zwfw.guizhou.gov.cn/ucenter/simpleLogin?=&response_type=code&client_id=dgov-portal&redirect_uri=https://gzmh.zwfw.guizhou.gov.cn/login/callback.html&version=guizhou&isHLW=true',
        'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
    }

    params = {
        'csrf': kwargs.get('csrf'),
    }
    # captcha=kwargs.get('captcha')
    # # kwargs['captcha']=input("请输入验证码：")
    # print("打印输入验证码之后")
    # print(kwargs)
    data = {
        'captcha': kwargs.get('captcha'),
    }

    response = requests.post(
        'https://gzmh.zwfw.guizhou.gov.cn/ucenter/web/code',
        params=params,
        cookies=cookies,
        headers=headers,
        data=data,
    )
    print(f"\033[91mhttps://gzmh.zwfw.guizhou.gov.cn/ucenter/web/code打印\033[0m")
    print(f"\033[91m{response.json()}\033[0m")
    return data